import request from '@/utils/request'

// 查询专栏学员列表
export function listColumnStudent(query) {
  return request({
    url: '/column/columnStudent/list',
    method: 'get',
    params: query
  })
}

// 查询专栏学员详细
export function getColumnStudent(id) {
  return request({
    url: '/column/columnStudent/' + id,
    method: 'get'
  })
}

// 新增专栏学员
export function addColumnStudent(data) {
  return request({
    url: '/column/columnStudent',
    method: 'post',
    data: data
  })
}

// 修改专栏学员
export function updateColumnStudent(data) {
  return request({
    url: '/column/columnStudent',
    method: 'put',
    data: data
  })
}

// 删除专栏学员
export function delColumnStudent(id) {
  return request({
    url: '/column/columnStudent/' + id,
    method: 'delete'
  })
}
